<?php
include_once 'DAOInterface.php';
abstract class BaseMySQLDAO implements DAOInterface {
	private $rowlimit;
	private $context;
	private $entityName;
	/**
	 * Enter description here ...
	 * @param BaseContext $context
	 * @param String $entityName
	 */
	function __construct(BaseContext $context, $entityName) {
		$this->context = $context;
		if($context==NULL)
			$this->context = new BaseContext($context);
		$this->entityName = $entityName;
	}
	
	/**
	 * Enter description here ...
	 * @return BaseContext
	 */
	protected function getContext() {
		return $this->context;
	}
	
	function getEntityName() {
		return $this->entityName;
	}
	
	function getMySQLConnection() {
		$conn = $this->context->getDBTransaction()->getMySQLConn();
		
		return $conn;
	}
	
	function create($obj)
	{
		
	}
	
	function update($obj)
	{
		
	}
	function delete($oid)
	{
		
	}
	
	function findByOid($oid)
	{
		
	}
	
	function findAll()
	{
		
	}
}
